import static org.junit.Assert.*;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

/**
 * 
 */

/**
 * @author SERGIO MOLINA
 ** Universidad del Valle de Guatemala
 * Algoritmos y Estructura de Datos
 * Sergio Molina
 * 10256
 * 23 de agosto de 2011
 */
public class StackitoTest {

	/**
	 * @throws java.lang.Exception
	 */
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	/**
	 * @throws java.lang.Exception
	 */
	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	/**
	 * @throws java.lang.Exception
	 */
	@Before
	public void setUp() throws Exception {
	}

	/**
	 * @throws java.lang.Exception
	 */
	@After
	public void tearDown() throws Exception {
	}

	/**
	 * Test method for {@link Stackito#push(java.lang.Object)}.
	 */
	@Test
	public final void testPush() {
		 System.out.println("push");
	     int item = 3;
	     Stackito<Integer> instance = new Stackito<Integer>();
	     instance.push(item);
	    
	}

	/**
	 * Test method for {@link Stackito#pop()}.
	 */
	@Test
	public final void testPop() {
		 System.out.println("pop");
	     Stackito<Integer> pilita = new Stackito<Integer>();
	     pilita.push(6);
	     int result= pilita.pop();
	     assertEquals(6, result);

	}

	/**
	 * Test method for {@link Stackito#peek()}.
	 */
	@Test
	public final void testPeek() {
		System.out.println("peek");
        Stackito<Integer> pilita = new Stackito<Integer>();
        pilita.push(7);
        int result = pilita.peek();
        assertEquals(7, result);

	}

	/**
	 * Test method for {@link Pila#empty()}.
	 */
	@Test
	public final void testEmpty() {
		System.out.println("empty");
        Stackito<Integer> pilita = new Stackito<Integer>();
        pilita.push(9);
        boolean result = pilita.empty();
        assertEquals(false, result);
	}

}
